package com.genius.framework.multitenancy.client;

import com.genius.framework.multitenancy.annotation.MultiTenancyFeignClient;
import com.genius.framework.multitenancy.entity.TenantUser;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@MultiTenancyFeignClient(name = "MultiTenancyLocalhost", url = "http://localhost:9898")
public interface MultiTenancyClient {
    @GetMapping("/api/tenant-users")
    List<TenantUser> findAll();
}
